Alibabacloud.com offers a wide variety of articles about select x from tablename in sql, easily find your select x from tablename in sql information here online.
Note: copy a table (only copy structure, source table name: a new table name: B)Select * into B from a where 1 <> 1
Description: copy a table (copy data, source table name: A target table name: B)Insert into B (a, B, c) Select D, E, F from B;
ADO Connection Database
1) Get connection string
Way one: Remember the connection string
connectionstring= "Integrated security=true; Server=. ; Database=dbname "
Mode two: In Visual Studio, click "View" À service Explorer, right-click the data
* Description: copy a table (only copy structure, source table name: a new table name: B)Select * into B from a where 1 <> 1
* Description: copy a table (copy data, source table name: A target table name: B)Insert into B (a, B, c) Select D, E, F
Note: copy a table (only copy structure, source table name: a new table name: B)Select * into B from a where 1 <> 1
Description: copy a table (copy data, source table name: a target table name: B)Insert into B (a, B, c) select d, e, f from B;
Note: copy a table (only copy structure, source table name: a new table name: B)Select * into B from a where 1 <> 1
Description: copy a table (copy data, source table name: A target table name: B)Insert into B (a, B, c) Select D, E, F from B;
Description: Copy table (copy only structure, source table name: A new table name: b)SELECT * into B from a where 1<>1
Description: Copy table (copy data, source table name: A target table name: b)Insert into B (A, B, c) select d,e,f from B;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.